Gets whether the IDictionary<(Of <(TKey, TValue>)>) contains an
element with the specified key.
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Private Function Contains ( _
key As Object _
) As Boolean Implements IDictionary.Contains |
C# |
---|
bool IDictionary.Contains(
Object key
) |
Parameters
- key
- Type: System..::.Object
The key to locate in the IDictionary<(Of <(TKey, TValue>)>).
Return Value
true if the
IDictionary<(Of <(TKey, TValue>)>) contains
an element with the specified key; otherwise, false.
Implements
IDictionary..::.Contains(Object)Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException | key is a null reference
(Nothing in Visual Basic). |
See Also